<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Strategic Businessgame</title>
	<meta http-equiv="Content-Type"
		content="application/xhtml+xml; charset=utf-8" />
	<meta name="description" content="Businessgame" />
	<meta name="keywords" content="TUWien Strategic Management Game" />
	<meta name="language" content="de-AT" />

	<!--  CSS includes by JSF EL-->
	<h:outputStylesheet library="css" name="planspiel.css" target="head" />
	<h:outputStylesheet library="css" name="fonts.css" target="head" />
	<h:outputStylesheet library="css" name="skinning.css" target="head" />
	<h:outputStylesheet library="css" name="core.css" target="head" />


</h:head>
<h:body>
	<f:view locale="en">
		<p:layout id="mainLayout" fullPage="true">
			<p:layoutUnit id="centerLayoutUnit" position="center">
				<h:form id="sellingPriceDialogForm" styleClass="horizontal_full">
					<h1>Selling Price Setting</h1>
					<p>Please set here the selling price. You can change it later in the Chosen Products mask.</p>
					<h:panelGrid columns="2">
						<h:outputLabel for="productName"
							value="Product name:" />
						<h:outputText id="productName" 
							value="#{companyMBean.selectedProduct.name}" />
							
						<h:outputLabel for="productQuality"
							value="Product quality:" />
						<p:rating id="qualityRating" value="#{companyMBean.selectedProduct.getQualityFactorStars()}" stars="5" readonly="true" />
							
							
						<h:outputLabel for="productCosts"
							value="Product costs:" />
						<h:outputText id="productCosts" 
							value="#{companyMBean.selectedProduct.productCosts}" />
						
						<h:outputLabel id="splabel" for="sellingPrice"
							value="Selling price: " />
						<p:inputText id="sellingPrice"
							value="#{companyMBean.sellingPrice}" />

						<p:commandButton icon="ui-icon-disk" value="Save Selling Price"
							actionListener="#{companyMBean.saveSellingPriceDialog}" />
					</h:panelGrid>
				</h:form>
			</p:layoutUnit>
		</p:layout>
	</f:view>
</h:body>
</html>
